#pragma once
#include <QFrame>
#include <QDialog>

class GlWidget;
class Surface;
class QLineEdit;
class surfaceMgrPanel :
    public QFrame
{
    Q_OBJECT
public:
    surfaceMgrPanel(QWidget* parent = nullptr);
    ~surfaceMgrPanel();

private:
    void onAddBtnClicked();
    void onDelBtnClicked();
    void onEditBtnClicked();

private:
    GlWidget* m_glWidget;
};

class SurfaceEditDlg : public QDialog
{
    Q_OBJECT
public:
    SurfaceEditDlg(Surface* s, QWidget* parent = nullptr);
    ~SurfaceEditDlg();

private:
    void onOkBtnClicked();
    void onCancelBtnClicked();

private:
    QLineEdit* m_pathEdit;
    Surface* m_surface;
};